package com.guan.ordering_sys.generator.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *  Goods商品
 * </p>
 *
 * @author 关远键
 * @version v1.0.2
 * @since 2021-06-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Goods对象", description="Goods商品")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品编号", required = true)
    @TableId(value = "goods_id")
    private Long goodsId;

    @ApiModelProperty(value = "商品名称", required = true)
    private String name;

    @ApiModelProperty(value = "商品标题", required = true)
    private String title;

    @ApiModelProperty(value = "商品品牌")
    private String brand;

    @ApiModelProperty(value = "商品条形码")
    private String code;

    @ApiModelProperty(value = "商品颜色")
    private String colour;

    @ApiModelProperty(value = "商品价格", required = true)
    private Double price;

    @ApiModelProperty(value = "商品单位", required = true)
    private String unit;

    @ApiModelProperty(value = "商品类型编号", required = true)
    private Long typeId;

    @ApiModelProperty(value = "商品状态：0下架1上架", required = true)
    private Integer status;

    @ApiModelProperty(value = "商品图片地址")
    private String picture;

    @ApiModelProperty(value = "注意事项")
    private String attention;

    @ApiModelProperty(value = "售后条款")
    private String afterSale;

    @ApiModelProperty(value = "商品描述")
    @TableField("described")
    private String described;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;


}
